package cn.com.yky;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.IOException;
import java.util.logging.Logger;

/**
 * Created by dizhi on 2017/1/17.
 */
@SpringBootApplication
public class Application {

    private static Logger logger = Logger.getLogger("stmms-ms-collect");

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);

//        String os = System.getProperty("os.name").toLowerCase();
//        Runtime rt = Runtime.getRuntime();
//        String url = "http://stackoverflow.com";
//        try {
//            if (os.indexOf("win") >= 0) {
//                rt.exec("electron.exe");
//            } else if (os.indexOf("mac") >= 0) {
//                rt.exec("open" + url);
//            }
//        }
//        catch (IOException e){
//            logger.warning(e.getMessage());
//        }
    }
}
